import TransactionType.java;
 
private class Offer {
                private String       OfferID;
                private String       TraderName;
                private TransactionType   Transaction;
                private String       Resource;
                private int         Quantity;
                private int         Price;
                private String acceptor;
 
                public Offer (){
 
                }
 
                public Offer(String id, String name, TransactionType t, String res, int q, int p){
                                OfferID = id;
                                TraderName = name;
                                Transaction = t;
                                Resource = res;
                                Quantity = q;
                                Price = p;
                }
 
                /*
                *Accessors
                */
 
                String tradeID(){
                                return OfferID;
                }
                String res(){
                                return resource;
                }
                int quant(){
                                return Quantity;
                }
 
                String traderName(){
                                return TraderName; 
                }
 
                TransactionType transType(){
                                return Transaction;
                }
 
                int price(){
                                return Price;
                }
 
                String acceptor(){
                                return acceptor;
                }
 
                void addAcceptor(String a){
                                acceptor = a;
                }
 
}
